error+test: introduce r5js.Error interface, useful in error testing.
test: improve coverage of expected exceptions.