Support the hash objects in `define`. Fixes #1286