NewArrays and runtime size check added