handle dynamic empty and null arrays
Merge pull request #1436 from crate/m/dynamic_array_edges

handle dynamic empty and null arrays