Fixed bug in get_int (thanks Travis for reporting the bug).
Optimized get_int by adding exit condition.
Adjusted sd_vector test to capture special case.