Smarter clojure-match-next-def for def indexing.

Thanks to @mgrisius. Closes #154.