suzerain: #2503 extract check_cartesian_primitive

git-svn-id: https://svn.ices.utexas.edu/repos/pecos/suzerain/trunk@42691 0bd85f0b-c151-43b9-a1e9-27231104551f