fixed some issues with derivatives of assembly boundary vars

Also some misc cleanup, e.g. removed @fake nodes from the derivative graph.