Fix for reversed direction of arrows in curvilinear grids

Fix for reversed arrows in curvilinear grids. Based on:
http://www.resc.rdg.ac.uk/trac/ncWMS/changeset/1006