split IDAMem into IDAMem and IDAPerms to make it easier to dict-wrap