Allow stream initialization with arrays