Fix CompileError constructor argument order.
Turn null SourceLocation into empty trace.