Fixed incorrect serialization of parameterized method arguments like List<T>.

Now guava's TypeToken<T> is used instead of Class<T> for typing.