Validate # print directive args, fix round behavior wrt returning ints, and add tests