Empty modules

Start making changes for better management of empty modules.

Also cleaned up a lot of the parametric test machinery.

Note: there are some warnings about NaNs in there that we still need to clean up, but now at least the test suite passes cleanly again.