Nest backtrace and types inside gateway error hash

This brings the format of CC errors in line with that of the V1
gateways.