Change interface type cast of array length

JSON builtin typecasting of the array length property explodes in certain cases where it's an int instead of a uint32. This should change that