ignore .eunit dir
if the type/1 is given an undefined type, return undefined

fix ChicagoBoss/ChicagoBoss#249