v1.3.7 prevent non-primitive value types by ref