allow stringifier to handle mongo _ids etc and other objects