Ensure the type of id is maintained when publishing changes.
Merge pull request #622 from xdissent/publish-id-types

Ensure the type of id is maintained when publishing changes.