A few minor modifications to the ByteArray and Memory classes. Copy Constructors and cast operators.