Fixed calls to AddAttribute because of a bug in Lucene.Net that throws an exception when it is called with the right parameters. However, there is a protected AddAttributeImpl method that can be called successfully.
Fixed reference to the wrong variable in SectionSearchQuery.Query.