Added mapStream, toStream, fromStream and foldStream to frontend and intepreter.