Merge "Allocation.resize() should throw an exception in API 21+." into lmp-dev