Improve versatility and robustness of `cpptype`, and document it in the user guide See merge request !12