Fix bug in mem-arg-valid?.