{ a => 1 } is an itemized hash, and is not meant to flatten

The flattening behaviour is deprecated, and it will result in an one-element hash assignment (failure) in future. I replaced the curlies by parens, even when they are not needed the code looks less odd.