Fix issue 10018 VRP for const/immutable variable declarations with initializer