Test for nested attributes in variable nodes. Fix issue found by test.