FieldList is checked instead of SelectMultipleField

`flatten_json` used to fail for custom fields that return list and don't inherit from `SelectMultipleField`.

I added some test cases to verify this.