Fix off-by-one error in ArraySegment
Merge pull request #780 from miniBill/master

Fix off-by-one error in ArraySegment