Well-definedness of Streams by Transformation and Termination (Logical Methods in Computer Science, 2010)