Bugfix: enforce tuple of arity 2, otherwise it is impossible to handle t...

...he situation when a list of objects to be encoded.