Improved speed of _createFilterInArray. Fixes #22