Move optimizer to linq4j, improve translation of strict functions