TypeRegistry class and test
Merge branch 'henryleu'