Java's scalar replacement doesn't yet know how to remove the autoboxing

Revert "Refactored IpcBuffer: use lambdas to remove duplication in all get/set methods"

This reverts commit 67c28b5f562ca1a21c504930d388ebde885b0d85.