core: fix bug in z_trans:translations/2 when called with a {trans, ...} tuple.

(cherry picked from commit c721221d435c9cd39346f4382864060a110a56a6)