do not break in string transformation when given primitive arrays, fixes #6