fix the *_to_one edit templates to work with sf 2.3 and fix a typo in json