added query methods to CompositeType