Make raise() and reduce() behave sensibly for all values

Now when either function is called with undefined, null, or '', they
will return a sensible default value.