rust: fixes for enum namespace change
rust: API changes

except for find_equiv in the (currently unused) interner, which needs
lifetime variance.