Added asserts for noting serialization errors in dictionary as well as some debugging prints.
Added a serializable version of long. It is split into two ints instead..