Fix memory leak in mutable DataRef
Fix data comparison issue