Transform the coordinates in place

Small memory optimization: avoids to create a second temporary array in `ol.geom.flat.transform.transform2D`.