Support boolean and null JSON values

Currently, `boolean` translates to `interface{}` and `null` causes a JavaScript error. 

This PR translates `boolean` to `bool` and `null` to `interface{}`.