used to remove comments, and (more importantly) pick up default canonical package names, useful for ordering and removing duplicates.