Temporal and differential stabilizability and detectability of piecewise constant rank systems