Validating that object/array updates are performed on dynamic variables