So it seems the culprit was the HashMap/HashTable class after all.

Still, those errors are confusing and if I link the class to the sprite inside the Flash Environment the compiler doesn't show any errors.

I think I'm creating my own associative container class but it would be helpful if someone figures out what he hell is going on.