make serialize take one entry hashes of format (key: ->(o){ o.value }) instead of a block