fixed serialization of null values at partition name

minor: refactored Id class
Merge pull request #626 from crate/s/partition-name_null_fix

fixed serialization of null values at partition name