Remove the tofirst and tolast methods taking functions. They're easily implemented in terms of tonext and toprev by calling firstdayofmonth/lastdayofmonth and firstdayofyear/lastdayofyear.
Remove the Date specific conversion methods. These are pretty trivial and one can just do Date(unix2datetime()).