fixed comparison operators s.t. proper tree types are passed to lrx_compare_trees