Some improvements for static analysis

Some things I encountered primarily when working with the `Recoil::*()` API.