fix bug for :default route in defroute

--HG--
branch : master
extra : amend_source : 12846047016ca448ab5a164d949c18ecab2a3cd5
support :factory in defmodule

--HG--
branch : master