Is a batter charged with an at bat when when bases are loaded. the batter hits the ball to the second baseman who throws home and all players are safe?

Yes. This would be recorded as a single on FC which means Fielders Choice. The fielder could have thrown to first base but he threw home instead so the runner was safe on a FC.