Adding reference type to output scheme.
Added handling of output data references to compare algorithms.
Updating compare test cases due to addition of references.