[bugfix] Avoid always falling into slow code branch in AxisAlignedCubeGeometry
The methods corners
and global
of AxisAlignedCubeGeometry
suffered from wrongly implemented switches that caused the
implementation to always use the slow code branch for cubes
embedded into a higher dimensional world space. This is only
a performance bug as that branch will still compute the correct
result.