fix a number of issues with the metadata service services - things that
support finding out what sorts are supported, for instance.

The ValueSetDefinitionResolution one wasn't working at all, and the
entities query/read services that I wasnted to call from the
valueSetDefinitionResolution code was also broken.