Fixes visit_Array and adds the test for it