toDominoFriendly can now deal with arrays