Made put_doubles and put_ints match get_doubles and get_ints more closely.
Removed stray test code.