Fix #1396 : Allow objects inheriting from list or tuple

A SimpleListAdapter doesn't accept objects inheriting form list or
tuple, because it checks directly the type.

Here, in place of testing the type of the object, we use isinstance.

Also provide a testcase