There is another ``formToDictionary`` in ``inlineEditForm.js``. It would be ideal if we could bring these two implementations together  as a common util function.