added support for nested chains in parallel arrays