Implements tree:has_value/2
formatting fixup