Denamespace class_name in relations, fixes #296