Fix some of your issues with array sizes

This way it only has to be smaller than the code space you callocate