fix dimnames issue if BatchInfo was factor with unused levels
fix dimnames issue if BatchInfo was factor with unused levels: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: fix dimnames issue if BatchInfo was factor with unused levels
The task
**Title:** fix dimnames issue if BatchInfo was factor with unused levels
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.