Add leading and trailing options to throttle and debounce features