Fix issues reported by CodeAnalysis (NRefactory).