Add ObjectArray::CopyOf

As part of doing this, moved Heap::Alloc* helpers to the corresponding
classes in object.h to break heap.h<->object.h cycle due to use of
Heap from ObjectArray::CopyOf (which is templatized and needs to be
defined in .h file).

Change-Id: I1870af6e9dc6552820034ead5e20d13ae4da67da
7 files changed
tree: ee1597be70dc8f064f9c7e86e1eb11670c894129
  1. Android.mk
  2. build/
  3. src/
  4. tools/