fixed problem with Nx2 numpy arrays in geometrical functions (#2783)

fixed problem with Nx2 numpy arrays in geometrical functions (#2783) - before they needed to be reshaped to Nx1x2