Fix a few bugs and add assert in just-added spark-split-view.