libfreerdp-codec: fix mppc decompression

* protect against history buffer overflows
* fix replicating copy (CopyOffset can be > HistoryBufferSize!)