Switch automap to use fire_primary_state

Counting is unnecessary here.
Remove unused fire_secondary_count
Use rear_view_state instead of rear_view_count
Use automap_state instead of automap_count
Remove always-true test in kc_drawitem
Pre-compute labelx+inputx
Only rebuild tables on request
Use helper to test for guidebot flag