fixed a bug in arraylength.  See tests.ExternalArray class.