Complete the conversion of basic operators to functors

This just leaves set() and asum(), and also the math operators.