Add passing test 46.
Emit partial data required for deserialization (code refs are missing).

And stubs for ops required for deserialization.
Fix coding standard violations.
Seperate some ops into a 'core' ops module.
Separate some ops into an io module.
Fix coding standard violations.