support FOO[BAR][BAZ]=123

@bkeepers 

we are converting a bunch of yml files to environment variables and though using this format was a nice replacement (we need to generate a hash with nested keys -> so we cannot just split on `_`)