support marshalling extra context back in errors