reduce nesting
style
use dict instead of list

to map cells of merged partition to cells of its parent partitions.
More general, extensible and robust practice.
use warning.warn, not logger.warn
bugfix: use numbers of modes, not None
new: HybridSysDyn.modes, .all_mode_combs