Improve failure case for MutliDimArray

Throw an exception instead of an obscure reference error

Change-Id: Ia9c5496964b51d45eed6a30896633a9e67257b27