Fix Arrays.coypOf newLength parameter at ArraySetUpdater.remove(E[], int).

The actual newLength parameter should be "len - 1", and not "idx".
[XNIO-120] Add negative count support to Buffers.copy(int count, final ByteBuffer destination, final ByteBuffer source) method, and throw UnsupportedOperationException if count is negative in the other copy methods.

This is a temporary approach. The goal is to add support to negative count on all copy methods that have the count parameter.
Prevent BufferOverflowException at Buffers.copy(ByteBuffer, int, BuferAllocator).

The exception, thrown if sliceSize parameter is negative, is caused by the erroneous call to Buffers.limit.
Prevent BufferOverflowException thrown by Buffers.copy(ByteBuffer, ByteBuffer[], int, int).

The exception is thrown typically when destination buffer has a length smaller then the number of bytes to be copied.
Fix copy call inside of Buffers.copy(int, ByteBuffer, ByteBuffer[], int, int).

The method was copying destination into sources, while it be the opposite. As a result, this method was returning empty copies.
Fix return statement of Buffers.trySkip(Buffer[], int, int, long).
At Buffers.readModifiedUtf8Z and Buffers.readModifiedUtf8Line methods, treat bytes whose 0xff mask is larger than 0xf0.

Those bytes were being omitted, while in fact they should be replaced by the replacement char.
Fix Buffer.readLine. The method was ignoring the last character in src buffer.
Fix IllegalArgumentException thrown by Buffers.addRandom(ByteBuffer, Random), which occurs whenever targetBuffer has no remaining space.
Fix 'to' parameter at the Arrays.copyOfRange(byte[] original, int from, int to)  call performed by ByteString.copyOf(byte[] b, int offset, int len).
Fix IndexOutOfBoundsException check at ByteString.substring(int offs, int len) method.
Check if target being closed/shutdown is null at IoUtils.safeClose(IoFuture) and IoUtils.safeShutdownReads(SuspendableReadableChannel).

Similarly to the remaining IoUtils.safeClose methods, these methods should check for nullity to keep consistency in the api.
Fix IoUtils.transfer method.

The value of total, used as reference in the while loop was not being updated in the iteration.
Fix Ioutils.RetryingNotifier.

This notifier was ignoring cancelled and done results. As a consequence, if a open request is performed to the retrying channel source (returned by IoUtils.retryingChannelSource), the open IoFuture would fail to have its result defined unless the open operation was cancelled.
At OptionMap.parseAll(Properties, String), append '.' to prefix whenever needed.

This commit makes parseAll(Properties, String) consistent with parseAll(Properties, String, ClassLoader), which appends the '.' to prefix whenever the prefix does not end with '.'.
Also, update the javadoc.
Use a non-null class loader for parsing at OptionMap.parseAll(Properties, String).

The OptionMap's class loader should be used instead of null when invoking Option.fromString, or else the parseAll method will fail to load the requested options from properties.
	setJava7
Fix Sequence.isEmpty() method.
At SequenceOption.parseValue(String, ClassLoader) method, parse an empty string as an empty sequence. Do the same with TypeSequenceOption.

Otherwise, an empty string is parsed as a sequence containing an empty string.
Replace UnsupportedOptionException with UnsupportedOperationException at XnioWorker.accept* methods.
Update state to RESUMED on EmptyStreamSourceChannel.wakeupReads.

Also, cover the unexpected scenario where readRunnable is invoked with a null listener (in this case, reads should be suspended).