Fix overflow in dim4::ndims.
Fix overflow in dim4::ndims.

9prady9/arrayfire,umar456/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,umar456/arrayfire,umar456/arrayfire,9prady9/arrayfire,umar456/arrayfire,9prady9/arrayfire,arrayfire/arrayfire