I found the std.algorithm problem. I skipped outputting templated structs because it crashes my compiler. For some reason. microd.d(130): Error: variable t forward declaration Segmentation fault. Poo. Function templates work fine, though.