CORE-4796: added validation to ensure that properties of a type that is not hidable may not be hidden