New `scaleInvPrim` function

This is a simple change, and another step along the way to nice support for arrows.  However, it's perhaps a bit controversial because it gives scale-invariant things zero size, just like text objects (I can't see any other way to do it). Please take a look and ascertain whether you think this makes sense/is acceptable.