changed onDispatch to convert arrays to JsonModel to stop exceptions being thrown when trying to navigate to a restful action that doesn't exist