Villagers have a difficult time finding their beds or around complex terrain. They'll often throw themselves off large cliffs or overhangs, causing in death. Some villagers reliably force themselves into a wall in an effort to get to a bed that is blocked by buildings or structures. Some get stuck in certain headlevel objects, such as lanterns, and will not move until the lantern or block is removed.
I suggest that pathfinding be drastically updated before this release is given out, as villagers are extremely buggy and prone to suicide. Perhaps using certain blocks as a priority "road" like structure in their AI, as that would prevent many of these issues while also giving players incentives to build their villages up and customize them.