Transaction: adds assert for invalid value type