Fixed stringify to output just object's own properties