core: initial implementation

implemented most of the print*, foundations of scan*.
Added basic round-trip tests for non-container values.