Allow passing object to stringify, resolves #145