Fix mask logic and `equalize_hist` in `__all__`.