*Smart Search: Illegal string offset in PHP 5.4 + tips correction

When using php 5.4 and displaying in frontend the Advanced parameters in a Smart Search form (from the menu item or from the result of a search via the module, we get 
 Warning: Illegal string offset 'class' in ROOT/libraries/cms/html/html.php on line 965

Also, the tips for the date do not display as should;

After patch, no more Warning and the tips should display like this, when hovering the Start Date or hovering the date field (if a date has been chosen when doing a second search)