HF RL Explorer

cpp Improve invalid type error and clean-up SOMAGroup initialization

cpp Improve invalid type error and clean-up SOMAGroup initialization: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: cpp Improve invalid type error and clean-up SOMAGroup initialization

The task

**Title:** [cpp] Improve invalid type error and clean-up SOMAGroup initialization

Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.