\Phalcon\Validation

Largely minor changes to the Validation component that allow cphalcon's ValidationTest to run. There are still 3 PHPUnit failures though:

    1) ValidationTest::testValidationRegex
    Failed asserting that 0 matches expected 1.
    
    /phalcon-php/test/cphalcon/ValidationTest.php:252
    
    2) ValidationTest::testValidationRegexCustomMessage
    Failed asserting that 0 matches expected 1.
    
    /phalcon-php/test/cphalcon/ValidationTest.php:284
    
    3) ValidationTest::testValidationStringLengthMaximumCustomMessage
    Failed asserting that two objects are equal.
    --- Expected
    +++ Actual
    @@ @@
     Phalcon\Validation\Message\Group Object (
         '_position' => null
         '_messages' => Array (
    -        0 => Phalcon\Validation\Message Object (...)
         )
     )
    
    /phalcon-php/test/cphalcon/ValidationTest.php:638
I agree with you - `string` or `integer` are matching types for this usecase, but in case we want to reach full compatibility with the PHP array usage, I would recommend the usage of an `is_scalar` check.