[ScalarEvolution] Guard dump() with #if

to be consistent with its definition in ScalarEvolution.cpp