add clone() of stack allocated memory for folly::Cursor and folly::IOBuf