Fix massive-assignments with locals

Fixes #7