added failing test
updated test
made the test pass
use indexOf polyfill
Merge pull request #2361 from H1D/filteredArrayDestroy

Proper filteredRecordArray destroy