implemented generic code for cl properties returning arrays of elements

The will be returned as a python list, querying the length of the
array in the same way used by string arguments.