Fixed lexer bugs.
Somehow wildcardrules keep sneaking in places.
Merge pull request #27 from salspaugh/lexer_fix

Fixed bugs with the lexer which resulted in broken tests.