BSP improvements: bad_allocs, bad splitting planes