Fix crash in PopupManager

Int and Array config inputs crash or return non-dynamic output in Reflect.copy().