Fix some bugs in the implementation of virDomainMemoryPeek