Matrix basis rep

Adds a function onBasis specialized on R2.  There is no ThreeD.Transform module yet, so I defer writing that variant.

Depends on the change in https://github.com/diagrams/diagrams-core/pull/36

See that pull request for caveats about this code.