Add coords.modsum() function for convenience.