util method typeParameters for TJDeclaration

Change-Id: If02eb6b3901842dbe37cd0defa4c57bce4d38ad8
pass type param in the presence of operations

We must type parameterize also the inferred adapter interface and class.

Change-Id: I8d2a7fad865740403db3f48a0b56b97ee022285a
stack example with generics

Change-Id: I131c7f30027edc5d33169f6f2a114a9ecbcfabfd