If the player is inside of an object at a location, and moves from there with a standard movement command, they remain marked on the map as inside the object. They don't seem to actually remain set as inside of it for other purposes, however. Re-entering the room, you can enter the object again as if you hadn't been inside it. This also corrects the map icon.