Add tests for printing of NonZero-optimized enums in Rust