Clears the list of traced functions on exit to avoid accumulation on re-attach.
Sets the handoff separately for each attach in the burst_malloc test.
There are still problems with re-setting options: droption #4139 (closed) and core #2661 (closed) (with the '#' prefix workaround). Those are left to their respective issues.
Issue: #3048 (closed), #2661 (closed), #4139 (closed)