cleanup(various): Eliminate warnings, dead code

I am not sure that is dead code, though probably analyzer is smarter than me :) On line 196 ```resolveClassIdentifier``` is called with 2 arguments, second one being ```param.type.typeArguments```. Either the analyzer is wrong, or there is a lot more dead code to be cleaned up.