Added field's type (Value or Reference).
Fixed object size for arrays and strings.