[neo-project/neo] allow CheckWitness to work when using invokescript (#335)

FWIW: neo-one has an additional rpc method `testinvocation` that accepts an `InvocationTransaction` and executes it.