The main issue is that it seems any error during the saving (or restoring) of the state causes all (or a random subset?) of the forms variables fail to be restored.
I've attached a tiny embedded form for testing purposes;
Test1:
- Enter text in textfield
- Enter invalid date, e.g.117812-11-11T00:00:00
- Save, F5
-> textfield was not saved
Test2:
- Uncomment the first <input .."checkbox"> & comment the <checkbox..>
- Save will not work on all elements
Test3: (as on boolean inputs
- Uncomment the second <input .."checkbox"> & comment the <checkbox..>
- Save will not work on the boolean element
Test4:
- replace cam-variable-type="String" with "Text" ..save will fail for all