Update for latest Rust, mostly by changing * to & in `get_type` calls