Only create the variable and type maps when needed
Only create the variable and type maps when needed

This greatly reduces memory thrashing at the expense of some extra nil checks... resulted in a ~20% performance boost overall

richardwilkes/goblin,richardwilkes/goblin