Bug fix + Initial type value registry impl

Fixing a couple of silly bugs and initial TypeValueRegistry implementation.

The TypeValueRegistry uses runtime discovery to attempt to locate information about extension TypeValue identifiers.