Allow any casing for functions. Fixes #1168