nasmlib: Introduce idata_bytes helper