When I put down my beloved mosin on the roof on Devil's Castle it disappeared, or so I thought. It ended up glued to the ceiling below.
Maybe the walking plane and the items plane are different there?
I tried to reach my mosin from the stairs, fell and died so I couldn't reproduce the bug. However, there were already a hat/cap there(on the ceiling when it was supposed to be up on the roof).