TypeRep smooth part of refactoring.
Non-smooth refactoring.
Merge pull request #59 from vjovanov/develop-0.4

TypeRep abstraction.