habtm should list valid keys in a class variable

habtm should list valid keys in a class variable like the other
associations does.
I created a LH ticket, with a patch: http://tinyurl.com/5l96kx

Best,
Luca