Fix deprecation warnings.

Fix places that caused warnings like:
[DEPRECATED] This method (browsers=) is deprecated, please use the [] and []= accessors instead.

Test suite passes only with less warnings.