added in some further AST optimizations to fix failing tests in LINQ.