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.