Version bugfix

This PR provided:

- [x] missing xml driver mapping for version/lock
- [x] set initial version if document is saved in upsert mode
- [ ] write tests