Modularity and spatial reorientation in a simple mind: encoding of geometric and nongeometric properties of a spatial environment by fish