[core] Make p/print JITable and only flush for p
[stdlib] Fix nested labels in PEGs