improve AppendToStreamSpec and ExpectedVersion