Fixed some implicit casts that were failing in DMD on x86_64 Linux. Also cleaned up trailing spaces and updated package.json to new dub.json file for DUB.