Fix readonly keys with bad indexes.
Merge branch 'develop' into new_bitcoinjs