ArrayObject::exchangeArray should always return an array

Summary: It would return the object, if an object was used. PHP however returns an array nevertheless.
Closes https://github.com/facebook/hhvm/pull/3819

Reviewed By: @ptarjan

Differential Revision: D1570374