Fixed *(matrix|array)[index]=value segfault