Add support for per-type originating elements.

Yeah this method is the result of inlining a few things. I originally modeled it after `referencedClasses()` but chose to just kill all the extra crap (interfaces, methods).