Added MinKey, MaxKey and Code serializers to PrimitiveSerializers. Added CodeWithScope support to DocumentSerializer.
Fixed raw types warning on Document.class