Correct type() logic

It should NOT run if the future parser is enabled
Merge pull request #358 from hunner/fix_type

Correct type() logic