Add StateMachine::UpdateStates that invokes new function State::Update on
state stack from outermost to innermost.

This is really for convenience since it's easy enough to invoke a custom
function on the state stack, but most clients want at least a basic Update
function like this one.

The args can be configured in config.h (default is no args).