Fixed VAR macro to support arrays.