Fix+LINQ-expression usage in some cases

+ compile fix
+ "Loop can be converted into LINQ-expression"
+ Some of "Part of loop's body can be converted into LINQ-expression"