fix serialization of int64 attribute values

fixes issue #1