Small changes to bibentry loading for references.