Fix a LookupType bug in rt-dump-metadata

This bug went in accidentally.

Sorry for the extra work, I didn't test it.