changing _element / _contents to _key / _val
Changed _val to _value in JSON/MsgPack serialization.