fix foldl and rfoldl traverse order, add slow append to Deque