Add marshal utilities for string Params, CommandResult and EventData types

Change-Id: I290390a004d359bbec69c5e7f72bdda22e04b3e2