Fix an infinite loop in RPC deserialization due to type variable cycles.

Also, add RPCTypeCheck to a test suite so it actually runs, and fix a test
that now receives AssertionError instead of ArrayIndexOutOfBounds.

Fixes issue 7779.
Based on a patch by James@wetheinter.net

Change-Id: I88c2774622d22b982346d1ffe5cf12f5d3c96d92
Review-Link: https://gwt-review.googlesource.com/#/c/1410/

Review by: rluble@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@11467 8db76d5a-ed1c-0410-87a9-c151d255dfc7
4 files changed