Fix link dump for move-target and search

(irtmodel.l, test-irt-motion.l) : Fix link dump for move-target and search link included in :links and add test code