Fixed reflection for generic method argument/return type.

--HG--
extra : source : a5abbe500739e883846cef82b80f31847ca48747
extra : amend_source : 3a9b3da31436479e45202cc022c002a28b20e55b