added new phase which splits cascading lambdas

* this is a workaround for a problem in mem2reg which may occur in very obscure cases