Add testcase for undefined object members
Return null instead of the string: undefined, this is also analogous to what JSON.stringify() does