fun referenced(): ReferencedStateAndRef<T>
For adding StateAndRefs as references to a TransactionBuilder.