serialize smallints smaller, put a flag in front