Debug mode: add runtime bounds checking for arrays
Array bounds should be checked in Debug mode and give a nice error message if out of bounds access is requested.
Array bounds should be checked in Debug mode and give a nice error message if out of bounds access is requested.