Fix erlang -> json conversion for bool and null

I think conversion from record to json struct should have same behavior for values as conversion from json struct to record.