Add methods sprite:has_animation() and get_num_directions(). Fix #525.