Merge "Optimizations around escape analysis. With tests."