Size method can return the result correctly when grouping by the column of a joined table.

Fixes #286.

Examples:

    before:

    Article.joins{person}.group{person.id}.size # => Error

    after:

    Article.joins{person}.group{person.id}.size
    # => {1=>3, 2=>3, 3=>3, ...}