Fixes #2729: Added `FilterValidator::skipOnArray` so that filters like `trim` will not fail for array inputs