fix and export in-dict sequence syntax
  closes PR 13772

Also add syntax for in-dict-{keys,values}.