Refactored TTree leaf type handling into individual converters.