Fix lower bound checking in scan_once / raw_decode API #98