Fixed several minor bugs in type pool. The current implementation can cause a stack overflow error as annotation types are looked up eagerly what results in an endless loop. Refactor this fetching to apply lazy evaluation.