Added reset functions for sequences and dictionaries.