[ScalarEvolution] Guard dump() with #if