Fix getClass().getComponentType() for higher-dimensional arrays

When creating an object array with more than two dimensions, the
component type was erroneously set to the base type, not the array
type of one less dimension.

This prevented Collection<Class[]>#toArray(Class[][]) from working
properly.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Verify that two-dimensional object arrays have the correct component type

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Adjust fromIndex in String#lastIndexOf if necessary

If fromIndex 'is greater than or equal to the length of this string,
it has the same effect as if it were equal to one less than the length
of the string':

http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#lastIndexOf%28int,%20int%29

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Verify that String#lastIndexOf handles large fromIndex correctly

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add the Integer#decode method

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Test the newly-introduced Integer#decode method

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add the Boolean#getBoolean method

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add the Method#isVarArgs method

Required by bleeding-edge Beanshell...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add Collections#synchronizedSet

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add Collections#singletonList

This is a very dumb implementation that wastes space and time by
constructing a full-blown ArrayList as backend. However, it is
better to have a dumb implementation than none at all, and we can
always do something about the performance when, and if, that should
become necessary.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Make Vector a Cloneable

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge pull request #87 from dscho/beanshell

Support running Beanshell's bsh.Interpreter class