A Robust Class of Data Languages and an Application to Learning (Logical Methods in Computer Science, 2014)