Add ability to remove/reset state back to null

As mentioned in #2572, replaceState(null) should set the state of component back to null.
Oooh, it looked like it was exposed in the component. Then it's all good :)