Change DefaultTYPEManager to TYPERepository and update tests.