Moved basic types and serial API to util