Corrected warning.
Added test for nested arrays.