Fixes #1177. Bug in hashes subassigns with functions