cppgen: Types for shared_ptr form and regular form in caseOf