Added fetchState and pushState method to CMathContainer.