Rename Magic#flags_array to Magic#flags_to_a.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>