The EXP bug seems to be related to a rounding bug, if a building costs less than $100 per unit, then you won't get any XP at all even when mass-building.
Ahh, that does make sense