Checks for hasOwnProperty in function render

When render() is called on an object with prototype functions,
prettyjson prints them. This is almost always never the desired
result. This patch fixes this behavior.