flagutil: Added BoolFunc and StringFunc

These are two new flag types which take a function to
be executed when the flag value is changed.