add missing support for the :group ar_options

when showing pagination - all records we have to use the length method so that
we get the size of the array ( for group we would get a hash with counts)