Support array value in mode

mode can be array value, for example, {path:"ace/mode/php", inline:true}