Why the trillion?
We just wanted a large number, although at the moment a trillion isn't actually possible using a 64 bit signed integer :p
I strongly suggest considering a smaller amount. Trillion is ridiculous just conceptually and as you say will probably lead to bugs. But more importantly, at that amount the valuation will have to be too high to trade directly in BTC. The coin will be stuck in LTC trade at the start and dead in the water.