fix passing array of data to Document::fromArray on already saved document