Added diagrams-core to the dependencies. This is needed for the custom transformations.
Added code to the diagrams backend to create custom transformations from Matrices.