Allow the SQLITE_MAX_ATTACHED compile-time option to be larger than 62.  The
default limit on the number of attached databases remains 10.
Limit the maximum SQLITE_MAX_ATTACHED to 127, since a signed character
is sometimes used to store the database index.
For the OR-optimization, avoid generating OP_OpenRead opcodes that reopen
exactly the same index.