Added stuff
Modified sum

Added methods sum_scalar for scalar return types.
Modified builtins

Implemented builtins for scalar return values.