Fix issues with A_mul_Bc and Ac_mul_B for CholmodSparse (#9160).

As described in the title. Is there any test for Cholmod related functions?
This looks odd. Why the `Union`?