Changed onDispatch to convert arrays to JsonModel to stop view exceptions being thrown when trying to navigate to a restful action that has not been overridden