HF RL Explorer

Fix output flattening in BasePreprocessor and add tests

Fix output flattening in BasePreprocessor and add tests: a task in lifesci-drug-discovery-swe-envs-nocap (Harbor dataset). Title: Fix output flattening in BasePreprocessor and add tests

The task

**Title:** Fix output flattening in BasePreprocessor and add tests

Part of scalingX/lifesci-drug-discovery-swe-envs-nocap.