Fix #427: handle nested parameters with arrays correctly when using declared
Merge pull request #427 from timhabermaas/fix-declared-when-given-arrays

declared(params) breaks when params contains array