For this particular thing, you might just use the LimitedComplex context, or one of its variants: http://webwork.maa.org/pod/pg_TRUNK/macros/contextLimitedComplex.pl.html
There are other tools for distinguishing numerically equivalent answers that have different forms, but Limited Complex strikes me as the simplest for this.
WeBWorK Main Forum
Webwork accepts answers, which are the same as problems
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 10 posting(s) in 1 day