Further changes to inferrence + deprecation warning

- Enums fields must be `int`, if any.
- One more integer needed to be annotated
- `.to_c_str().with_ref(...)` is deprecated. I changed this to `.to_c_str().as_ptr()`.