fix foreach and elseif statements,
fix warnings in scope.jade test on php 5.4.