issue #4058: Template fix. Object -> Ref