Add Reference.signature

Previously there was only Reference.definition which was either a
definition object or the string of an inline signature. It was not
possible to have both and in order to make use of the attribute a type
check was necessary.