Adding fix for array type hint on generated methods

Introduces a polyfill that fixes behaviour of Zend\Code with array type hints