fix various bugs in new integer parser framework