Fix error where edge points can be considered off the edge of the lensing grid.  Also fix errors in warnings
(#449)