add default argument fn=None to treereduce (identity operation)