ensure keys()/type() conform to JSONWP spec by converting keys to string