Add "get" method to match dict API.