Graphic optimizations 2

This PR mostly improves the expansion of stream buffers by using the builtin copy, and Type4 PostScript functions by simplifying the memoization mechanism and increasing its size to match newest data.