Allow metadata into Converter.toJSON. Closes #5