Bug 9574 change LENGTH() to only operate on strings. Add ARRAY_LENGTH() for arrays