Allow `IL.replaceState` to be called with just a state
We weren't actually picking up state from popstate
Be a little cleverer about when we trigger dep changes.