Fix issue where case wasn't being updated properly. Use a values table so the main table's lookup always returns nil so __newindex is always called and the value is updated properly. This also ensures the lookup value is always properly removed when removing a value from the table. Also convert tabs to spaces for consistancy.