Move OID encoding/decoding, use a switch in decode()