Incorporate more efficient broadcast_shape and calc_loop_strides by Tim Holy