Fix bugs:
1、Data type: bool and enum on v4 p0 encode/decode protocol error
2、callback compare error cause different pointer callback error
Merge pull request #3 from ight32/master

Fix bugs: