Changed promise detection in <? when ?> to if( v.then )...