draw: added array element debug / bounds checking code (disabled)