Implement record dict-iterate-* and dict-count