1. Performance optimization in atom collection parsing.

2. Code refactorization.
3. Added new utility methods in TypeUtils.