Fixes indirect modification has no effect error.

Also adds some tests to prevent it from happening again.
Goddamnit Yoda, I told you not to touch my pc.
Optimization of ApiFieldFilterListener::_checkField().
Replaces array_search() for in_array().
Merge pull request #97 from Phally/fieldfilter

Some love for the ApiFieldFilterListener