Rotary-piston machines or engines with the working-chamber walls at least partly resiliently deformable