isArray and isDictionary were not working

Therefore making it impossible to pass in arrays or objects from Javascript.
`callWebScriptMethod` can only call immediate properties on an object.