acu100796 fix nested array of hashes params

This complicates the logic because there are now two special cases:
1. top-level array of hashes
2. nested array of hashes