Add stringify method

Particularly useful for keystonejs/keystone#735