bug fixes.

1. fix typedef typo error
2. identifier may contain '_'