Merge "Add error checks for AllocationAdapters being used in unsupported ways."