Use System.arraycopy instead of Arrays.copyOfRange to avoid triggering JDK-7174363 bug in copyOfRange. Fix package of ArrayDequeTest