Add BUG.
Use globally overloaded new instead of xr_new.
xr_delete now is equivalent to the following code:
  delete ptr; ptr = nullptr;