Update the spec/grammar for list flattening