Eliminate most cast uses in StateInitOrderer.collectDependencies
issue