feat(engine): support setting serialized variable values

Suppport setting serialized variable values is all setVariableX(...)
APIs

related to #CAM-2484