Refactor: libcrmcommon: Change formatted output type checks.
Use CRM_CHECK instead of just an if block so the programming error gets
logged. Add a couple more checks to functions that were lacking them.
And then replace a couple CRM_ASSERTs that could just as well be
CRM_CHECK for consistency.