Test case at bug 1763 shows that there is bug at handling ref(argX)
Created attachment 1804 [details] a proposal patch a proposal patch for fixing this issue
This patch makes no difference on my T23 and does not solve the GBST evaluation problem. See bug 1791 for the workaround patch that does fix this (although the fix seems a little too specific to be correct).