Fix array/sequence write
Fix sequence length from env.
Fix string write