Minor fixes to get_timingsX to accept timed functions taking arguments by reference