Zend\Mvc\Controller\AbstractRestfulController: various fixes to Json handling

Zend\Mvc\Controller\AbstractRestfulController
* various fixes to Json handling
* decode() now uses controller property to determine json return type (object/array)