Allow `simple_types_filter` to handle lists and tuples. Fixes #638.