CRM-1659: Implement DoctrineExtensions for Oro - added unit test for ArrayType and FunctionFactory - fixed CS - fixed PHPDoc