Reorder primitives: 1st apply, 2nd diff

Sometimes, diff came before apply - which is inconsistent with most
other modules and the expected order (the usual order of operations is
+, -). Moreover, later we'll add nil last, and that makes most sense
next to diff, since nil v is equivalent to diff v v (with a possibly
better implementation).