System.gui.transform inside nested templates

For anybody that stumbles onto this old cold case, I'm working on the same problem here: