fix(checkName): Check for wellformed logical names (closes #4968)