fix tetradic amend for dictionaries (from Kevin) and add tests