Try to fix compute_dependency so it always keeps contiguous event arrays contiguous -- doesn't work yet -- hopefully useful