How do I enable/disable persist behavior?
You don't, either the object has things you need to remember for the entire game / when you return to layout or it doesn't.
Develop games in your browser. Powerful, performant & highly capable.
If you want to reset a persistent object, just destroy it and recreate it manually.