Check naming of global variables, fixes #16