move _d_createTrace to where it belongs

_d_createTrace() has no business being in dmain2.d, it belongs in the exception handling code, which is the only code that references it.

Moving it also exposed type errors in the parameters, which I fixed.