copy document supports array