Fix #3172, return_gateway_groups_array() was returning the last vip since it was using wrong variable name on iteration