npd: Mark more functions as static and comment out some dead code.
npd: Use GeglMatrix3 directly.