Two new tests are skipped because they're buggy. Making some newer random state tests work required implementing the 'compressed return value encoding'. (cherry picked from commit 1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4)