Fix QuantumCircuit.compose
on unusual types and registers
#9206
+137
−88
QuantumCircuit.compose
on unusual types and registers
#9206