remove invalid resource types from the metadata

We have seen several mlses list a Resource type in the metadata, but
then never reference in the list of classes. This breaks our
metadata, as we assumed all resources had a class. This fixes that
potential bug.
I am curious how to exclude `@logger` from being dumped, but have no quick idea at this moment