remove lazy foldl-s from arrays, add unsafe snoc