Solved bug at class.lua, inifite loop when calling class.is_a