Convert all statics to consts
Change some constants to uppercase names

This silences a warning, and more closely matches the original Lua C
names.