Fix/global dictionary

This fixes an issue with dictionaries being overwritten during code execution as well as an introduced bug related to the double scene root fix and multiple rigged meshes.