Compatible with cake 3.0-beta1 release

Small changes to make form helper compatible with latest cake 3.0-beta1 release