Fix to special case Dispose method to be treated as non-action

#1294
@rynowak @yishaigalatzer 
why do you need an extra parameter? can't you use `methodInfo.DeclaringType` here?