Separate xxxLength() functions for different types

LENGTH() only operates on strings 
ARRAY_LENGTH() for arrays
OBJECT_LENGTH() for maps
POLY_LENGTH() for string, arrays or maps (generic when the type of the argument is not known)