bindata pack working for arrays and registers