Filter out non-typeahead elements for plugin methods. Fixes #815.