Don't eagerly load total_pages if one is provided.

Previously, scope.total_pages (and therefore scope.total_count) was
loaded on every paginate, causing an additional (potentially expensive)
query against the scope as part of total_count. With this patch,
total_pages is only loaded if it isn't already in the options hash.