add metatype field for lang and library.versions
ReferenceNameQuery; remove some SetStubIds