Replace Query.map/reduce/reduce_right with implementations that don't require using map/reduce builtins.
Replace Query.map/reduce/reduce_right with implementations that don't require using map/reduce builtins.

Mainly done for readability.

dgilland/alchy