Refactor most of pwiz into a reflection module, refactor tests, add test
for pwiz model code generation.