Implement vtable and cross-crate support for autoderef.

Implements vtable support for generic Deref impls with trait bounds.
Also fixes cross-crate inlining when using autoderef.