Given the change in the DependencyInjection/SonataBlockExtension.php foreach() to use `$types[] = $service;`, the array indexes are now numeric.  So this condition will always throw the exception.  Perhaps `if (!in_array($configuration['type'], $this->types)) {` is what you meant?