Identifying Causal Direction via Dense Functional Classes