ARQGRA-445: Retrieving type parameters and arguments fixed

- refactored into GenericTypeInspector, unit tests added