Fix eager loading with groupBy and paginate

See issue https://github.com/laravel/framework/issues/5063