extra generator for array shapes
fix NDArray fold-over for 0d case