Added semi-persistent global state (i.e. outside mem) that can hold any data type, including functions and coroutines.