Array ref variables

When tokenising variables, ensure that we're only grabbing a full array/hash reference, so that `$foo = [$bar, $baz]` doesn't end up with the last variable becoming `$baz]`.