change maps to dict

I really like pattern matching & maps =) But empty maps can't be matched =(