Capture variables which appear in AddressOf expressions by reference. Fixes #641
Merge pull request #644 from shamanas/97x

Fixes #641