Convenient testing methods. fromArray bug fix

Can use testing.Utils.expectStreamEvents to test EventStreams that
expect immediate results, and that have delays. Can have debug output
by setting testing.Utils.DEBUG to true/false. Currently, it's true.

fromArray had a bug with the Events that it sent where it would always
get a new value when using getValue. They now cache the first value
they get and always return that one.