Added hasResourceProperty, added namespace-safe conversion, added tests