Make the formula node work when some input parameters have units

When the input parameters of the formula node are pure numbers, it works correctly. But when they have units, it does not work correctly and will throw exceptions. This submission fixes the issue by converting the parameters with units to pure numbers.