Document Pool#id_for and fixup some YARD types

Document the `Pool#id_for` method and fix up some type declarations in
`Action::Base`.