Merge "Switch ReferenceWithHistory to use ArrayDeque" into rvc-dev am: c6eea102 am: bdda392a am: f2dc29fd Change-Id: I9e0dbe17a4e24e2262d3d6dea2a4b8e10a52cbc3