fix decoding of pointer fields that are 'null' in json

This is a fix for #16