core: better support for array widgets in FormHandler