Rename RegisterFunction to RegisterAggregateFunc and RegisterScalarFunc.