Moved bounds checking into functions, broke fat pointers to arrays