Fixed a 5 bugs due to additional type coverage. Also refactored code for better readability.
Merge branch 'feature/0.0.3a' of https://github.com/neoinsanity/ontic into feature/0.0.3a