added more robust handling for stripping indexterms from passthroughs

Also added handling for refentry into passthrough