Fix for AxisAlignedRectangle::lineXsurface

Change p1[coord] to p1[DIM], wrong variable was used as index.