Fix off-by one error in ArraySegment
More compact and fast Equals(Object) in ArraySegment