use code instead of stderr, cleanup xunit so it writes all at once to prevent interleaving

for real this time.

oh, and magically reduced file size of xunit by 100x

@jnwng 

cc @dandixw 
triple equals checks without type conversion, but moreover its just consistency with our site codebase