bedouin overhaul begun

Lua be.I64 and be.Id types can now be converted between one another.