Fixed FoxmlDocument not respecting versioning

See comments on the commits.