Add object mode for MiJ writer

In cases where MiJ records are needed for further processing,
stringifying the results of the formatting merely adds unnecessary
overhead, so this patch adds an object mode to the MiJ writer.