WL#2085: Add a CARDINALITY(ARRAY) function

Affects: Server-7.1   —   Status: Un-Assigned

MySQL will implement a CARDINALITY function to operate
on ARRAY data values, in compliance with Standard SQL
(SQL:2003) array functionality.

Rationale 
--------- 
-- Needed functionality: 
The ability to determine the cardinality of an array
may be needed when doing any of the following on an 
array: INSERT, UPDATE, DELETE, SELECT.

-- Compatibility: 
ARRAY functionality is required by standard SQL. 
MySQL 4.1 currently has no ability to determine the 
cardinality of an array.