Always serialize object id as first field (fix #19)