Checkbox state not persisted on first save in repeatable group

Here's the code to define the repeatable group
https://gist.github.com/pdewouters/6328410

Add a few items, check some checkboxes then save.