WIP - refactoring type parsing into more functions
WIP - adding support for Real type