make "const" declaration imply "local" in an inner scope block
closes #3235