fixed a bug in RandomAccessibleCursor:
calculation of maxIndexOnLine was wrong for negative indices.
Thanks to Jean-Yves Tinevez for reporting the bug.