Just curious... Why are you testing on mainnet instead of testnet?
I played with testnet before and it has the same problem of nodes not relaying nonstandard tx.
And you pay real BTC for testing on mainnet?
You should check and test everything on testnet first!
Yes I pay small amount of BTC in return of gained knowledge.
I found it harder to test on testnet anyway. or maybe I am just too lazy to retry....