[converter] Added optional cast when an array is created. Optional
toString for richtext. Tests.

Change-Id: I86af9bbe9e2a10a00a8c1c7f7b6a0485a9ea7a64
Signed-off-by: Dennis Huebner <dennis.huebner@itemis.de>