Ticket #41: more dict interface fixes.