Convert big/hash.test to lua.

Add replace_if_exists as a stock method of a space.

Patch lua-yaml emitter to add \n after ---.