Issue discovered using toml-test; see the test methodology and output in this gist.
I believe there are two (related?) errors when parsing nested arrays.
# Shouldn't this produce an Array?
TOML.load("a = [[]]")["a"][0].class # => "Parslet::Slice"
# Extra nesting levels are discarded
TOML.load("a = [[[[1]]]]")["a"].inspect # => "[1]"
Issue discovered using toml-test; see the test methodology and output in this gist.
I believe there are two (related?) errors when parsing nested arrays.