Make element.filter(function) work. Closes #17.