jsonpickle: add an optional `warn` flag to encode()

Teach jsonpickle to warn about objects that it cannot directly
serialize, e.g. file descriptors.

Add tests to verify that we properly serialize these objects as None.

Closes #3

Signed-off-by: David Aguilar <davvid@gmail.com>