Random preparations for translation of final 'state' test; initial work on translating 'state' test; import some more names for C headers; clear up exporting of some constructors n stuff