Bugfixes and improvements of DynamicList and SortedList implementation
based on it.