box: Simplify the definition of box destructor functions by more macros.