Fixed some problems with setValue() in the list editor and added additional unit tests.