read_gmx: fix skip bug that created arrays which were too large