Fixed checking typeof package or module causing isPackage / isModule to be false with DMD head.

!is(typeof(DECL[0]) == void) is true with DMD head because modules and packages have no type, so isModule and isPackage is always false.