QPID-5067: Fix how dynamic languages encode map variants.