Make haxe.DynamicAccess.set return the given value (closes #3517)