Move lambda-splitting code to scalar.

It's not really an operation on group elements.
Remove unused num functions