Documented Streams/inplace and fixed some edge cases