bc: fix handling of comment/string interactions while buffering input