add type information for variable element in XML

this information is needed to distinguish between various varaible types
like function or plain value.