rustc: added a check for builtin bounds to vtable search

Closes #10751
auto merge of #13228 : dmski/rust/trait-static-bound, r=brson

There wasn't a check for builtin bounds when looking up vtables, only for trait bounds. This led to types sometimes implementing traits they shouldn't have been able to.

Closes #10751