use istype instead of isinstance for canning tuples/lists

and add explicit support for namedtuples
test serializing lists / tuples / namedtuples