Beyond the two-state model of switching in biology and computation