Added "digitsum" function to math module.
Fixed an issue when multiplying longs.