Fix temporary reference return for boolean Array2d.