Phalcon\Forms\Form::hasMessagesFor() should return boolean

See #1764

Plus optimizations in Phalcon\Forms\Form and Phalcon\Validation\Message\Group plus bug fixes elsewhere