Update the ContextHistory to support an array as a parameter