use dot path instead of flattened path for `@:expose` (closes #3142)