myrial: use StatefulApply only if state

Otherwise use Apply
Merge pull request #133 from uwescience/dhalperi-apply-vs-stateful-apply

myrial: use StatefulApply only if state