I totally agree with you. Spec detection is far from perfect.
I just explained how exactly it works: If there are mangle(cat) and mangle(bear) in this fight, it will compare number of mangles in each form. If there are no mangles, it will make decision based on other abilities.
So all you need to rank as bear is do all your fight in cat without using mangle, and do one mangle in bear form in the end.
If you want to rank as cat, you should do more mangles in cat than in bear or not to use bear mangles at all.
WoL site admins are lazy and they don't care much about poor cats and bears.
Lets create our own simple list of rules how to determine if it was cat or bear in the fight and post our suggestion on WoL forum.
---------- Post added 2011-10-15 at 06:15 AM ----------
Come on, its not MY fault. Don't aggro on me. I just explained how it works.
Look at top1 baleroc 10hm "bear": 3 mangles(bear) 2 mangles(cat).
top2: 1 mangle(bear) 0 mangles(cat)
top2: 9 mangles(bear) 3 mangles(cat)
Thats it. Thats how detection works. Really simple and obvious.
And we can change it. No. We can change it. But you should think out a really simple, easy to implement set of rules to detect role based on abilities used.