add couple helper methods to TypeMapDoc