chore(engine): throw exception if outside of commandContext

- SerializationType needs the command context for variable instances
- SpinSerializationType doesn't need the command context at all and
  it doesn't indicates whether the deserialization will work or not

related to #CAM-2435
fix(engine): fix typo in historic variable instance getter
chore(rest): add value type name field for historic variable update

related to #CAM-2435
chore(rest): refactor mock provider/builder

related to #CAM-2435