trace/rbug: Add new contexts functions to trace rbug