Fix #1647 "Versioning: Duplicate doesn't work on Summary page"

- passing "latest" is not allowed (used to be at some point probably)
- GET data.xml also returns the form version as a header
- when duplicating, read and write using the same form version