Added deleteReference -methods to ReferenceManager and GUIReferenceManager