Added support for arrays in nested attributes