Allowing number fields to be .as('hidden'). While we're here, also allowing boolean fields, since there is special-case handling for those.