Fix bug in parsing of PTR, and add a test; make other parse_name calls more consistent
Merge branch 'master' into mdns