Add advanced docs for datatypes internals