#21764 - template @refs are now resolved recursively