Fix crash in PopupManager

Int and Array config inputs crash or return non-dynamic output in Reflect.copy().
Additional fix for Array
Merge pull request #195 from MSGhero/patch-1

Fix crash in PopupManager