Fixed a memory allocation bug related to not copying the properties on the way in from the dictionary.