Increase the attach timeout from 1s to 10s.
[counters] Replace defines with static functions. Make stuff better typed.
[counters] Fix sizeof usage.
[counters] First pass sanitizing counter usage in the GCs.