C++ templates for Max/MSP objects