Refactoring to increase test coverage
Merge pull request #47 from lucaswoj/testcoverage

Refactoring to increase test coverage, added TypeValue::isSubtypeOf method