This is needed to consider read-only properties within those objects as those would otherwise get overridden. Fixes: #2174