fix metadata conversion
add test to ensure enums are equivalent
integrate elaphantbird 3.0.8