ARQGRA-445: Retrieving type parameters and arguments fixed

- refactored into GenericTypeInspector, unit tests added
ARQGRA-445: more unit tests added