Allow IsType('resource') to Match Closed Resources

Closes #1451

This uses `get_resource_type` to fetch the "type" of a closed resource
which is "Unknown". `is_resource` returns false for closed resources.
Remove Short Array Syntax
Merge pull request #1480 from chrisguitarguy/fix_1451

Allow IsType('resource') to Match Closed Resources