fix c++ output for owned pointers in initialization lists