Implement isArray() and arrayLength()

Add the implementation of two functions needed to replace the use of Reflex in the Conditions code.
Implementation provided by Paul Russo.