In my testing I used zombies as their ai is able to guess what they should be doing. The rails are acting like walls until they are able to get over them and then they have no problem pathfinding to the villager.
I also tested creepers with cats and got similar results.
Linked issues
Attachments
Comments
No comments.