Improved fix of LENGTHTO for referenced types (issue #514)

Adam Knapp requested to merge lengthto into master

Signed-off-by: Adam Knapp adam.knapp@ericsson.com

Merge request reports