Fixed type parameter check in JL5.

Handled test cases: GenericConstructor01|02, GenericMethod21.