fix($parse): allow use of locals in assignments
Fixes #4664