improve serialization of meta modules

using `express-state`'s serialization method to stringify meta modules that can have conditional and test functions.