fix JSON.stringify support
fix type check
v0.1.4