misc improvements for TypeLibraries