Clean up references/idnits