Zend\Code\Generator\MethodGenerator now accepts parameter as array

Solves #6420 issue