Inverted in memory representation of capabilities

This allows more tests from the CHERI test suite to pass,
although I don't think these tests should rely on that