Correct type() logic

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

Correct type() logic
Fix exclude windows test on ensure_package

Update to fix ensure_resource as well
Merge pull request #363 from hunner/fix_windows

Fix exclude windows test on ensure_package