Add iterator callback to Query extension.

When executing a query against a collection, you have the
opportunity to invoke a function on each parameter passed
in using the results of the query.

This is useful for e.g. setting an ID property from an
AUTOINCREMENT column.