Tidy C++ header-only definitions for parts of the C API of R

WWW: https://dirk.eddelbuettel.com/code/tidycpp.html
