The Artificial intelligence NEEDS to be improved. On my world, when its night time, the villagers have troubles to get in their beds. Instead of the villager to go through the Door of the house, they go on the wall where the bed is located. So the villagers ODVIOUSLY couldnt never get to their beds like that. The problems is that The villagers' Pathfinding is broken. The mobs doesnt know how to get where they want to go. This is a problem with ALL the mobs I think.
The Iron Golems are other story. The prefer to go pretty FAR from the village. So if is there a raid or a zombie invasion, I had to take care of it by myself. Also, at some point that the Iron Golems teleports. Like on a Village, The Iron Golem was walking thorugh the village. And at on other day I found it on an animal pen. At some points I EVEN found it in a building. EXTREMELY weird and nonsense
Thank you for your report!
However, this issue is Invalid.
Please put only one bug report in each ticket. It is very difficult to keep track of bugs when they are not in their own tickets, and it is easier for you to make multiple tickets than for the mods to separate them.
Incidentally, the first issue you described (the villagers' AI) duplicates MCPE-43238. Please search before reporting an issue, as it's likely it has been reported before. The second issue (iron golems' AI) doesn't provide enough information for us to understand the problem. If you decide to create a new report for this, please see the Issue Guidelines.