Added missing flags support

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