All pointers are now 64bits wide, so should be
represented as java longs and not ints.
Also changed DelegateManager and SparseWeakArray to
reflect the new world order.
(cherry picked from commit 88a8364c38)
Change-Id: Ic2f55dd6235751169c5014f9d2ccf3f544259a87