Merge remote-tracking branch 'origin/swift-3.1-branch' into stable

* origin/swift-3.1-branch:
  Explicitly specify that ubsan-vtable-checks is x86-64.
  Insert a type check before reading vtable.