check dotted names consistency

Fixes #72