add suport for lists in simple_types_filter

support both arrays and dicts.