Deprecated 1.1 APIs.
Fix bounds check for Buffer
Always copy host ptr when using managed array
Fix destination pointer in test.