Refactor|libdoomsday|DEDRegister: Case-insensitivity improvements

Now uses a generic lookup method that can be used with any operation
thanks to lambdas. This fixes the handling of lookup values in the
has() method.