This resolves an issue where currentTabIndex, for example, was not cleared properly if it was set in initialOptions as it was cloned each time clearOptions was invoked.