made a check less sensible
fixed bug in convert_to_one_hot (thanks Alexandre Lacoste)
added test for convert_to_one_hot
Merge pull request #461 from goodfeli/master

Fix convert_to_one_hot and add a test