cherry-pick 'add import lapply from flowWorkspace'
add validity check for the invalid popNames for 'pop'. #40