Fix/#266 lambda lift

Fixed problems with methods getting too large a scope in LambdaLift. Review by @DarkDimius