Contributions
Move some methods to typeutils, added tests for the moved methods. Also added junit to pom.xml.