remove gc roots for variables that aren't used at all