Fixed (?) implementation of and_to_a, for and_n

The F flag was being set in a weird way.
I'm just copying the way the reference implementation is doing it
Comparing with reference for 7 frames, instead of one :D