allow setting of arguments in getInstanceOfClass and callMethodOnObject with arrays with numeric keys