Fix for bug4984, std.variant, std.exception.pointsTo, and std.algorithm