Optimized sf_list_from_collection() when collection is a list.

The function will return the collection rather than build a new list
when the collection is a list.  Modified unit test to check this.