fixed bug where you couldn't wrap a call to static methods or properties when using rezolvetargetadapter to produce a target from code.