Initial check-in of vMAT_fwrite (with minimal unit test).