add support for built-in reduce functions in DSL