'Arizona gunman' appears in court