added typesAsResources() methods
test for issue 209