Ensure same behavior between form and dict widgets
#7987 (closed) shows that when we do an improvement on a form widget, we often forget to check if dict widgets do not need them.
So I think we should try to put in one place the common part of those two widgets to limit such desynchronization.