Zero-length and other bugfixes in Arrays and Collections.