Multiple bug fixes

Fixed several bugs related to parsing the <condition> tag, and
re-designed the function that handles unsetting non-relevant AIML
"matches".