id serialization correctly returns null for null or undefined id values rather than 0
Better serializeId implementation that takes empty strings into consideration and fixed a logic error in isNaN(id) check
Remove redundant serialized variable. :/
Merge pull request #1038 from robmonie/id_serialization

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