fixes to generator and templates to 1) allow proper custom-listview-row 2) read in proper key refs 3) make 'ammo only' code to be consistently only with ammo flag in Schema