Minor error-tracking fixes in the memtracker and additional function prototypes and comments in the sample alloc.in, which works well for WT