Bugfix: enforce tuple of arity 2, otherwise it is impossible to handle the situation when a list of objects to be encoded.