writer: improve api

* Rename Write & Write64 to PutUint32 & PutUint64
* Split between little & big endian
writer: add test against little endian writes