Added a unit test for the new type registry stuff (mostly as a form of documentation), fixed the unit tests, and made sure the BaseDao has the correct type registry