Fix compilation bug in state machine demo
Fixed: dependencies not computed correctly for imports when caching json
Added pages to stencil