Various Villager glitches.
Apparently, at least while in Creative mode, shift-clicking on a Villager's trade interface will immediately break it. It does not consume any of the traded item, and only gives the player one of the received trade item, immediately setting the trade option to "out of stock." This seems to be more common with larger stacks of player-offered items. Sometimes, though uncommon, it will consume quite a few of the player's offered items, while only returning zero to two villager-offered items. It's an incredibly inconsistent glitch, and I have no idea why it's doing it.
Additionally, though they do go into houses at nighttime, (I used [/time set night] because I'm not that patient) they don't sleep on beds. They also don't close doors behind them half the time.
All of these glitches seem sporadic and unpredictable, other that the bed issue (I didn't see a single villager sleeping, even after doing [/time set midnight].)