Misc updates for newer rustc

* remove outdated Vec imports
* mark individual `deriving(Eq)` cases with `allow(raw_pointer_deriving)`
* switch to newer inner attribute syntax.