Bug 1091010 - Optimize accesses to TypedObject.length, r=nmatsakis.