Making the result of ridders optional to indicate
a failed operation. Adding a stream output for
arrays.