csg_inverse: added support for multi-molecule mappings