na.rm default argument

Added na.rm as a default argument so this sum is compatible with base::sum (i.e. doesn't return an error if the na.rm argument is supplied).