Fix issue 10018 VRP for const/immutable/enum variable declaration