New tests.
Fixed #101.
Fixed #98.
One more test for #98.
Fixed #102.
Fixed #96.
Merge branch 'master' into bug-group-join-count-where