Improved client-side resource transformation. Now supports overriding references to other entities with custom type.