Allows to encode empty tables as arrays.

An option is added to encode empty Lua tables to arrays. The option is
"encode_empty_table_as_array" and is set like this:

   cjson.encode_empty_table_as_array("on")
   assert( cjson.encode{} == "[]" )

By default, the option is off.

refs #2347