fix wrong type args bug
add read wrong type test
Merge pull request #48 from maralla/reentrant

fix wrong type args bug