Fixes Routes to use content type to map to a custom class only when it is an array