In DF2014, what causes Traps to attack own dwarves?

Drowsy dwarves were triggering traps even in 0.34.11. And they are still triggering them in 0.40.x

The evidence is that the only thing I've seen them cancel due to being caged is Sleep.