Add proper support for boolean meta box inputs

:warning: Please don't merge. Needs input from @gboone.