Add lists method to Collection class

As requested in #1527 (this wasn't truely fixed).

Add support for the `lists` function to the base Collection class. This will handle both object and array values.