Fixed size_t support for lengths/sizes.

Also removed any reference to long lengths/sizes. We should either have an
integer or a size_t/intptr_t kind of type.
Added PointerArray to APIUtil dependents.