optimize Bacon.fromArray