Add duplicate variable declaration checking.
change definition of scope mangling