fix bug in referentials

Referential data was getting corrupted in the avatar-mixer because we were using setRawData() which doesn't copy the content.