* issue 4468 fix: prevent ClassCastException when handling options of type boolean * #4468 fix: remove duplicate code