Enable snake_case accessing of relations. Closes #1191.