Recurse on arrays of objects in Record::toArray()

This is a breaking change, but I think the current behaviour is pretty inconsistent: Right now, arrays of `stdClass` (created by `json_decode`) aren't converted to arrays of associative arrays by `toArray()`.