Fix the bug for AllocationRead() that cannot handle 3d Allocation
correctly.
Add the following functions to make it symmetric for read and write.

 - AllocationElementData
 - AllocationElementRead
 - Allocation3DRead

Change-Id: I8c89b5e3474c4c3c70e9795843a76e61f1f90f6a
9 files changed