In ajax_request, if we can't serialize something it should raise an error instead of failing silently.