Compresses hash and array output in logs, fixes some raw bugs