[bindings] Allow `write_rust_type` to handle leading-colon paths