fix #440. add NonEmptyList#foreach

Cherry-picking commit f627c55