Treats stdClass as array

In a simple and effective way.