encode empty tables as arrays (option and default)