handle null src in stdclass_replace_recursive
merged master