patches.js: fix: module dependencies; fix: typo in model; feature: graph nodes are grouped by history