Because we use virtual classes (and for other reasons), we must do a small
allocation when simply retrieving the data type and domain of an existing
attribute. This happened quite a lot actually to determine these values for
result attributes.
This patch adds a simple function to retrieve this meta data information
without building the virtual array. This should lower the overhead of
every attribute node, though the difference probably wouldn't be
noticible unless a tree had many many nodes.