BUG: Bug in compat with np.compress, surfaced in (GH6658)

closes #6658