I just played with the "Your signature" textarea in my User Settings, and experienced the behavior you describe. I wrote in some text using square brackets and code tags, and after submitting the contents of the textarea had been munged. This looks like a bug.
This workaround won't help if you really want the effect of code tags, but you can replace the square brackets with [ and ]. That seems to work:
[chipmunk]