flagutil: simple utility types for common flag tasks

Currently only handles the bool->string flag alias.