Allow PG::CompositeType#elements_type=nil and fix error text for invalid types.