Residuality and Learning for Nondeterministic Nominal Automata (Logical Methods in Computer Science, 2022)