Fix smart indent

Fix for smart indenting.
Previously smart indent would crash due to NullReferenceException and nothing would happen. Currently it indents when inserting newline from line that ends with left brace and dedents when inserting newline from line that contains right brace.
While the former is OK, the latter does is kinda unfamiliar to me in VS. Looking at the issue tracker I don't think there are any exact plans for smart indenting other than "do it like other languages do it in VS" so I'll try and sketch something more detailed.
Docs say that types exported by MEF should be public. See the Note section below:
http://msdn.microsoft.com/en-us/library/ee155691%28v=vs.110%29.aspx#code-snippet-2