Added type checkings for variadic function args.
Some fmt-cleanup.