The various entity maps in a function end up being referenced in multiple places, so create typedefs for them.