Support Array as limit value.
Reset groupBy properly