fixes #630 - expressions with unresolved references can be reassigned