Added missing flags support

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| Tests pass?   | no
| Related tickets | #1
| License       | MIT

- [ ] Added unit test for FILTER_FORCE_ARRAY (need to know how it works)
- [ ] Make the failing test pass