Refactored typecache to accomodate type parsing. Stubbed out type parser. Ready for smart types.