Getting the references from the ObjectRef and MaterialRef. Declaration of dictionaries with inverse references started. Need to complete!