Update tests to include local emulator.h

I will (soon) be actually properly using emulator.h for my test cases.
This ensures that the latest version of emulator.h is included in the
builds.
Subclass mod_t and match methods
Add all nodes into the Chisel debug header

With this I can actually do peek/poke using the new debug interface.
Fix VCD module naming bug

I had a bug where if there were two modules of exactly the same name
back-to-backe then the VCD dumper wouldn't seperate them.