Merge duplicate entries in timer list

Merge duplicate user functions in the timer list when the output file
is written. As a side effect this patch also sorts the user function
timers by their name.