MODE-2156 Fixed the structure which holds reference properties, making sure that the same reference value for any given property is not stored more than once.