Only check visible array on history files.
Use UID 0 for anonymous users in PBF dense nodes.
Fix up formatting.