Proper array dimensions when nesting hashes