Validate value_reference for Entity.__get_properties

and log some warnings, if strange values get detected