Update code to nomlib’s latest API

* Refactor nom::Gradient to use Point2i (phase out use of nom::Coords)