feat(filterFilter): compare object with custom `toString()` to primitive

Closes #10464