attempting to solve typing problem - added method to get all types
bug fixes to color-detection, diagram now renders more or less correctly, last few bits of tidying up required
more color fixing
adding rendering priority to rendering events so as to be able to control layers when rendering in query order
putting full association uri in svg as attribute - probably needs reconsidering but better than nulls