Can you just contribute as you instead of as your company?
I feel you. The laws in many parts of the US and in some other countries should really change.
Luckily, in California the company can't really stop you from working on your own project or contributing to an opensource one.
Of course, I'm not 100% sure I could get them to approve contributions to any external repo due to liability concerns, etc.