small bugfix in CCArray.Sub: bound checking