fixed optional fold in takewhile

proper type parameter for static emptyList function