Render each entity type in its own layer.

Makes it easier to achieve a consistent z-order in a volatile diagram.