Optical: Add general "after d13n" hook
Currently only NodeGroup has a function sync_graph() which is called during deserialization in order to assign the graph defined in its properties to the (internal) graph structure. This also requires Optical::as_group_mut() for downcasting. A general Optical::after_deserialization() function would solve this in a more general way.