Changed serialization to enable passing other things that are not String. Also changed type of Update(s) in the stream, changing to AnyRef enables passing any object serializable (like lists, and case classes)
Refactored list of devices to JSON array on stream data, and fixed tests to be able to test this scenario where the data is not a String