[Misc] Refactoring: Move Type parser inside a "type" package
[Misc] Improved test