implement `ActionDispatch::Flash::FlashHash#to_h`