cpp templates: Improve error message when constructor params are not set

Change-Id: Ic8f5a0abcbe224ed3f0d7e0af9f70ac3f0f41303
cpp templates: Improve error message when invoke params are not set

Change-Id: Ia244a1009110ce3d9644987d49fc5c009e3e2938