Support more item types in get_history.