Do not memoize getType
Add vows dependency for unit testing
Full tests for getType and each