Only add indexed modules to a file document.

In the case of Package::Stash 0.36 the first-in logic was preferring
t/lib/Package/Stash.pm over lib/Package/Stash.pm

Fixes #331.