Change response format from Array to Hash on GET /patterns/:id/parameters
Fix some error response