Fix a few problems with the code generated for Sourceview.