move to new isArray() and arrayLength() methods from Bill and Paul

move to new isArray() and arrayLength() methods from Bill and Paul.
Please merge with ROOT6 branch.