Allow registering aggregate functions
This allows registering custom aggregate and window functions (which provide Step, Inverse, Value, and Final callbacks). It uses basically the same interface as the zombiezen.com/go/sqlite package, which already handles some trickier cases around multiple or concurrent invocations of the same function.
Edited by Sean McGivern