fix for issue #1144
tests and comments
Merge pull request #1145 from TrustNik/array_field_names

fix for issue #1144