Lots of fixes, new tests. Also starting the work on a proper splitter widget.