Fixed remove_useless_exports/2. Was out of date wrt the paper.