Added some tests for referencing objects

These are originally from eoghanmurray/refs, rebased
to the latest jsonpickle.

Signed-off-by: David Aguilar <davvid@gmail.com>
tests: add more complicated ref machinery tests

Add more tests to cover the expected behavior for object references.

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