id serialization correctly returns null for null or undefined id values ...

...rather than 0