Improve coverage of as_hash function for variable bindings and expressions (github issue #121).