Add module version information into the style item structure.

This is needed to update a style item applied during export if needed.
Update a style item if needed.

Fixes #9985.
Merge branch 'fix-export-old-style'

* fix-export-old-style:
  Update a style item if needed.
  Add module version information into the style item structure.