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

@erikzhang could you please take a look?