Fix toArrayDeep test