[fix] import path for FromStr
Reexport enums variants

With https://github.com/rust-lang/rust/pull/18973 merged enum variants are namespaced. They should be reexported or used like Enum::Variant.
Import num::Int
Fix deprecation warnings