fix issue 7227 - [] syntax for empty associative array too?

http://d.puremagic.com/issues/show_bug.cgi?id=7227