Fix context serialization in Execution.create

Proper serialization for context passed as dict.

Also:
 * fix type casting in Exception message

Change-Id: I3ad26ebba52ae9ed55c8f56b774f5017dcbd83ff
Closes-Bug: #1290214