Ensure the type of id is maintained when publishing changes.

If the id from params is used in the publish call, the id will always be a string. This PR maintains the real type of the model id when publishing changes. The `publishCreate` method already maintains the type since it grabs the id straight from the model instance in `introduce`.