Added support for toSerializable in IntegerProcess and StringProcess.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>