fix an analysis error with the outline view

@umop, this fixes an analysis error in the outline view code, where we were assigning the SparkPrefs class to an Element.