Add rv2str(), checks in templated functions, export constants.