#133 reduce lookups for type metadata