Proper serialization of _id property (closes #9)