ber_flatten() of incomplete ber