MOAR work on State serialization
Using lychee.setEnvironment() for resolving references in arguments.