Make ActionInfo.toString() generic