Fix selects for boolean fields

This assumes that empty strings on POST can be treated as nulls. If this assumption is invalid, we need to further examine the POSTED values and make this assumption only for Boolean types.