rename UseGlobalValues to UseDefaultState and don't serialize state when RememberStatePerDocument is false