Add some Java 7 support.

Most of our currently-supported collection types are unchanged between
Java 6 and 7, but LinkedList is quite different. Also, String no longer
has offset and count fields.