exchange AutoPtr into UniquePtr
add UniqueArray