Some improvements for static analysis

Some things I encountered primarily when working with the `Recoil::*()` API.
PhpStorm still detects it accepts an array, just not an array of a specific type.