Refactor: libcrmcommon: functionize checking resource variant
Add pcmkis_bundle(), pcmkis_group(), and pcmkis_primitive() to parallel
pcmkis_clone(). This is more readable and will be even more so when the
variant is moved to resource private data.