Ensure that Macro.expand_once/2 works with HashDict

Closes #1889