Correctly adapt unicode objects in arrays, fixes #331