fix spec mismatch for Binary.copy()
fix buffer sizing issues in MemoryStream.write()
added test for MemoryStream.readInto()