Refactor ZArrVal::cowCheck to expose its guts as new function forceAsPro...

...xyArray.

Add helper member function is ArrayData::isEmptyArray.

Having the new function forceAsProxyArray simplifies the task of making
some zend extensions port more easily to HHVM.