add vectorized ifelse functions
fix #4581
Merge pull request #4582 from lindahua/dh/ifelse

add vectorized ifelse functions
Merge branch 'master' of github.com:JuliaLang/julia into jb/de_event_repl
pause reading when enough_stdin flag is set; fixes pasting multiple lines