test for undefined in object keys
hide undefined properties, but if they are in an array, replace with null
2.0.9