Rules for dictionary keys

implements #10