speeding up class_for_typename
class_for_typename results are uncached

I suggest that after v0.3, we experiment with some lru_cache-workalikes which can handle any returned value.

https://pypi.org/project/memoization/ looks like an ideal candidate.