Impl context.to_dict()

Change-Id: I12af308193c162400109d36d3f4fd275a5ee8173