Merge changes I2710cfea,I03fb31ee,Iec512b31 into sc-dev

* changes:
  ResourcesImpl.ThemeImpl NativeAllocationRegistry
  Rebase ThemeImpl rather than reallocate memory
  Sparse native theme representation