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
Merge pull request #1397 from tonthon/fix_#1396

Fix #1396 : Allow objects inheriting from list or tuple