I think this needs some explanation of what you mean by "nested variables" and what failure you're testing against.  I'm guessing $(...$(blah)...) constructs for the former - it'd be worth saying this, if so - and I'm not sure about the latter.  The Redmine ticket provided no discernible illumination !