Create RestrictedDeque (needed for EventHandler) a deque that check if values are callables