slamdata/slamengine — pull request #489 by sellout (2014-12-08 20:46:12+00:00)
Title: Implement ShapePreservingBuilder. Fixes #207.

This allows us to use HAVING clauses – we can now modify a group after
some shape-preserving operation (EG, filter).

GroupBuilder also had to be modified to allow for containing _both_ a
map of fields and an in-progress field.

It also removes the fn parameter from merge, which means we now have to
[flat]map over the result.