Try using 3.1.3. GoJS 3.1.3 released
I hope you can remove that work-around of setting the Node.avoidableMargin.