Just to confirm the wooden bed trick.
I had a chest stuck and unable to do anything with. Also, it was below water level and thus stuck on natural stone back wall.
I placed blocks underneath it, and then a bed over it. I was then able to remove the chest.
I had to remove the bed by breaking the blocks under it. Then all wad good!