completed support for variable arrays and loops unroll