more reference conversion where appropriate
pass by reference the server where there are not null checks and it would cause undefined behavior. THIS IS NOT DEFINITIVE, there are still a LOT of spots left and indirect references that need to be dealt with.