Pascal Wrapper: Make the ProcessInplace() and FlushBuffer() functions work + more complete test functions.