perf: move TypeResolver
outside of the hot path
#227
Merged
TypeResolver
outside of the hot path
#227