I just reproduced that very easily, can't believe hadn't noticed it before. Figured out the issue this evening, was a leftover bug from my last round of item stack refactoring. Will get the fix out in the next update asap. Thank you for posting it!
If the game's cheating you of precious resources, cheat back by using the F1 console -> "giveItem researchObject 5" ;)