Allow any function identifier as a variable, closes #1649