Minor fixes to IDL

In particular, use sequence instead of IDL pseudo-arrays, and use optional instead of ? (i.e. nullable). Also make the table IDL reflect reality a bit more.